"""
class Student(object):
    pass


bart = Student()
print(bart)
bart.name = 'Bart Simpson'
print(bart.name)
"""


class Student(object):
    def __init__(self, name, score):
        self.name = name
        self.score = score
        pass

    def print_score(self):
        print('%s:%s' % (self.name, self.score))

    def get_grade(self):
        if self.score >= 90:
            return 'A'
        elif self.score >= 80:
            return 'B'
        else:
            return 'C'


bart = Student('Bart Simpson', 59)
print(bart.name)
print(bart.score)

bart.print_score()
print(bart.get_grade())
